package cn.dengta.webapp.user.form;

import cn.dengta.common.validator.*;
import cn.dengta.context.model.UserFormI18nKey;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

@Getter
@Setter
@Accessors(chain = true)
public class ChangePwdForm implements Form {

	@Check(value = UserFormI18nKey.CHANGE_PWD_FORM_OLD_PWD, required = false)
	@Trim
	@NotEmpty
	public String oldPwd;
	@Check(UserFormI18nKey.CHANGE_PWD_FORM_NEW_PWD)
	@Trim
	@NotEmpty
	@Size(min = 8, max = 20)
	public String newPwd;
	@Check(value = UserFormI18nKey.INVITE_CODE, required = false)
	@Trim
	@NotEmpty
	public String inviteCode;
	@Check(value = "userId", required = false)
	public Long userId;

}
